<template>
  <div class="popup flex-center flex-align-items-center">
    <div class="main">
      <div class="main-header">
        <p>修改密码</p>
        <i class="iconfont icon-guanbi" @click="close"></i>
      </div>
      <div class="form">
        <p class="form-label font-14 flex flex-align-items-center">
          新的密码<i class="iconfont icon-guanzhu-yiguanzhu"></i>
        </p>
        <input type="password" placeholder="8-20位密码" maxlength="20">
        <p class="form-label font-14 flex flex-align-items-center">
          确认登录密码<i class="iconfont icon-guanzhu-yiguanzhu"></i>
        </p>
        <input type="password" placeholder="8-20位密码" maxlength="20">
        <div class="form-btns flex">
          <p class="font-14 pointer" @click="close">取消</p>
          <p class="font-14 pointer" @click="confirm">确定</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { defineProps, defineEmits, ref } from 'vue';
const props = defineProps(['info']);
const emit = defineEmits(['close', 'confirm']);

const confirm = () => {
  emit('confirm');
}
const close = () => {
  emit('close');
}
</script>

<style lang="less" scoped>
.main {
  width: 570px;
  background: #fff;
  position: relative;
  z-index: 10;

  .form {
    padding: 16px 24px;

    .form-label {
      color: rgba(51, 51, 51, .85);
      margin-bottom: 16px;

      i {
        color: @main-color;
        font-size: 10px;
      }
    }

    input {
      width: 100%;
      height: 40px;
      padding: 0 16px;
      background: #fff;
      border: 1px solid #ff5277;
      border-radius: 2px;
      font-size: 14px;
      color: #333;
      margin-bottom: 24px;
    }

    .form-btns {
      justify-content: end;

      p {
        width: 72px;
        height: 32px;
        border-radius: 2px;
        text-align: center;
        line-height: 32px;

        &:first-child {
          background: hsla(0, 0%, 93%, .45);
          color: #666;
          margin-right: 12px;
        }

        &:last-child {
          background: @main-color;
          color: #fff;
        }
      }
    }
  }
}
</style>
